package com.cloudfun.campusshare.service;

import com.cloudfun.campusshare.common.constant.IdentityType;
import com.cloudfun.campusshare.common.model.dto.UserAuthDTO;
import com.cloudfun.campusshare.entity.UserAuthEntity;

/**
 * Created by Huqin on 2020/4/16
 */
public interface UserAuthService {

    void create(UserAuthDTO userAuthDTO);

    String updateByIdentifier(UserAuthDTO userAuthDTO);

    UserAuthEntity getByUserIdAndType(String userId, IdentityType identityType);

    UserAuthEntity getByIdentityTypeAndIdentifier(IdentityType identityType, String identifier);

    void updateByIdentifier(UserAuthEntity userAuthEntity);

    void deleteByUserId(String userId);
}
